<form action="/admin/buyers/custom-save" id="buyers-add-form" data-toggle="ajaxform" data-options="{closeCurrent:true}">
    <div class="bjui-row">
        <div class="bjui-row col-2">
            <label class="row-label">单位名称</label>
            <div class="row-input required">
                <input type="text" name="buyer_name" id="buyer_name" data-rule="required">
            </div>
        </div>
        <div class="bjui-row col-2">
            <label class="row-label">所属客户</label>
            <div class="row-input">
                <input type="hidden" name="customer_id" value="{{$customerId}}">
                <input type="text" name="customer_name" id="customer_name" data-toggle="findgrid" data-options="{
                    include: 'customer_id:id,customer_name',
                    dialogOptions: {title:'查找客户'},
                    gridOptions: {
                        local: 'remote',
                        dataUrl: '/admin/customer/list',
                        columns: [
                            {name:'customer_name', label:'客户列表', width:100},
                        ]
                    }
                }" value="{{$customerName}}" disabled>
            </div>
        </div>
        <div class="bjui-row col-2">
            <label class="row-label">排序</label>
            <div class="row-input">
                <input type="text" name="sort_id" id="sort_id" size="">
            </div>
        </div>
        <div class="bjui-row col-2">
            <div class="row-input">
                <label class="row-label"></label>
                <button type="submit" class="btn-default" data-icon="save">保存</button>
                <button type="button" class="btn-close" data-icon="close">取消</button>
            </div>
        </div>
    </div>
</form>
